package com.northwind.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

@NoArgsConstructor
@AllArgsConstructor
@Data
@Table(name = "nwg_user")
public class User implements Serializable {
    @Id
    private String id;

    private String phone;

    private String username;

    @Column(name = "head_img")
    private String headImg;

    private String sign;
    
    private String status;
    /*设置响应json日期类型格式*/
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @Column(name = "regist_time")
    private Date registTime;

    @Column(name = "regist_time_string")
    private String registTimeString;

    private String wechat;

}